<?php  echo '     <font color="green">'.$resultadoNovoAviso.'</font><br/><br/>
                  <h2> Histórico de Atualizações </h2>
                  <form action="/professor/novoAviso" method="post" >
                  <table cellpadding="0" cellspacing="0" border="0" width="100%" class="table">
                  <!-- table header -->
                  <tr class="table_header">
                  <td valign="middle" align="left">Data</td>
                  <td valign="middle" align="left">Turma</td>
                  <td valign="middle" align="left">Disciplina</td>
                  <td valign="middle" align="left">Notícia</td>';
                  //<td valign="middle" align="left">Opções</td>
                  echo '</tr>';
            foreach ($smss as $sms) {
                echo ' <!-- row type one -->
                  <tr class="row1">
                  <td valign="middle" align="left">';
                echo $sms["created"].'</td> <td valign="middle" align="left"><a>';
                echo $sms["turma_id"].'</a></td>  <td valign="middle" align="left"><a>';
                $disciplina = $Disciplina->first(array("conditions" => array("id" => $sms["disciplina_id"])));
                echo $disciplina["nome"].'</a></td> <td valign="middle" align="left"><a href="#">';
                echo $sms["texto"].'</a></td>';
                //<td valign="middle" align="left"><a href="#">Exibir Detalhes</a></td>';
            }
            echo '
              </tr></table>
              <p><input type="submit" class="button" value="Novo Aviso" /></p>
              </form>';
?>